package com.mujin.keji.collectionsystem.module.main.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.main.dto.SavePhoneDto;
import com.mujin.keji.collectionsystem.module.main.vo.SavePhoneVo;

/**
 * 保存手机号码Repository
 *
 * @author weishixiong
 * @Time 2018-05-25
 */

public class SavePhoneRepository extends CommonRepository<SavePhoneDto> implements ISavePhoneRepository {
    @Override
    public LiveData<BaseDto<SavePhoneDto>> savePhone(SavePhoneVo vo) {
        return request(Api.savePhone(vo)).send().get();
    }
}
